import request from '@/utils/request'

// 创建记分员 钱包记录
export function createWalletLog(data) {
  return request({
    url: '/jifenyuan/wallet-log/create',
    method: 'post',
    data: data
  })
}

// 更新记分员 钱包记录
export function updateWalletLog(data) {
  return request({
    url: '/jifenyuan/wallet-log/update',
    method: 'put',
    data: data
  })
}

// 删除记分员 钱包记录
export function deleteWalletLog(id) {
  return request({
    url: '/jifenyuan/wallet-log/delete?id=' + id,
    method: 'delete'
  })
}

// 获得记分员 钱包记录
export function getWalletLog(id) {
  return request({
    url: '/jifenyuan/wallet-log/get?id=' + id,
    method: 'get'
  })
}

// 获得记分员 钱包记录分页
export function getWalletLogPage(query) {
  return request({
    url: '/jifenyuan/wallet-log/page',
    method: 'get',
    params: query
  })
}

// 导出记分员 钱包记录 Excel
export function exportWalletLogExcel(query) {
  return request({
    url: '/jifenyuan/wallet-log/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
